package top.pengdong.pictureShare.common.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 系统常量 主要是redis变量记录
 */
public interface SysConstant {

    public final String[] MAP_PROVINCE = new String[]{
            "广东", "北京", "天津", "河北", "山西",
            "内蒙古", "辽宁", "吉林", "黑龙江", "上海", "江苏", "浙江", "安徽", "福建", "江西", "山东",
            "河南", "湖北", "湖南", "重庆", "四川", "贵州", "云南", "西藏", "陕西", "甘肃", "青海", "宁夏",
            "新疆", "广西", "海南"
    };
    /**
     * 对于ip地址邮件封锁操作
     */
    public final String IP_RECORD = "IP:";

    /**
     * redis 记录用户访问总数据
     */
    public final String COUNT_SUM = "COUNT:count";

    /**
     * redis 记录用户访问量
     */
    public final String VIEW_COUNT = "COUNT:view_num";

    /**
     * redis 激励ip访问
     */
    public final String RECORD_IP_VIEW = "RECORD:ip_view";

    /**
     * redis 中存放的热点数据参数
     */
    public final static String HOT_SWEET="SWEET:hot_sweet";

    /**
     * redis 中存放的喜欢数据参数
     */
    public final static String LIKE_SWEET="SWEET:like_sweet";

    /**
     * redis 中存放的收藏数据参数
     */
    public final static String COLLECTION_SWEET="SWEET:collection_sweet";

    /**
     * redis 中存放的评论数据参数
     */
    public final static String COMMENT_SWEET="SWEET:comment_sweet";

    /**
     * redis 中存放关注度排行榜高的
     */
    public final static String FORWARD_SWEET="SWEET:forward_sweet";

    /**
     * redis 中存放话题榜高的
     */
    public final static String TOPIC_SWEET="SWEET:topic_sweet";

    /**
     * redis 中存放话题榜高的
     */
    public final static String NEW_SWEET="SWEET:new_sweet";

    /**
     * 权限<->url对应的KEY
     */
    public final static String OAUTH_URLS="Oauth2:oauth_urls";

    /**
     * 权限白名单
     */
    public final static String WHITE_URLS="Oauth2:white_urls";

    /**
     * JWT令牌黑名单的KEY
     */
    public final static String JTI_KEY_PREFIX="Oauth2:black:";

    /**
     * 角色前缀
     */
    public final static String ROLE_PREFIX="ROLE_";

    public final static String METHOD_SUFFIX=":";

    public final static String ROLE_ROOT_CODE="ROLE_ROOT";

}